package com.chinaunicom.emergency.model;

import com.alibaba.fastjson.JSONObject;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Author liliang
 * @Date 2019/12/18 16:46
 * @Version 1.0
 */
@Entity
@Getter
@Setter
@EqualsAndHashCode
@Table(name = "oauth_client_details")
public class OauthClientDetails implements Serializable {
    @Id
    private String pid;
    private String clientId;
    private String resourceIds;
    private String clientSecret;
    private String scope;
    private String authorizedGrantTypes;
    private String webServerRedirectUri;
    private String authorities;
    private Integer accessTokenValidity;
    private Integer refreshTokenValidity;
    private String additionalInformation;
    private String autoapprove;
    @Override
    public String toString(){
        return JSONObject.toJSONString(this);
    }
}